package com.smartcommunity.api.faceLib;

import com.smartcommunity.api.faceLib.fallBack.FaceLibApiFallBack;
import com.smartcommunity.bean.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.Map;


/**
 * 布控服务feign
 */
@FeignClient(value = "np-zhsq-protection-service",fallback = FaceLibApiFallBack.class)
public interface FaceLibApi {

    @RequestMapping(method = RequestMethod.POST, value = "/task/face/addLibFeatureBatch", consumes = MediaType.APPLICATION_JSON_VALUE)
    Result addLibFeatureBatch(Map<String, Object> map);

    @RequestMapping(method = RequestMethod.POST, value = "/task/face/deleteLibFeature", consumes = MediaType.APPLICATION_JSON_VALUE)
    Result deleteLibFeature(Map<String, Object> map) ;

    @RequestMapping(method = RequestMethod.POST, value = "/task/face/deleteLib", consumes = MediaType.APPLICATION_JSON_VALUE)
    Result deleteLib(Map<String, Object> map) ;

}
